<?php
// +----------------------------------------------------------------------
// | Description: 1
// +----------------------------------------------------------------------
// | Author: orchief
// +----------------------------------------------------------------------
// | Date: 2018-02-05 14:23:24
// +----------------------------------------------------------------------

namespace app\client\controller;

use app\common\controller\Rest;

class OrderRefunds extends Rest
{
    public $modelName = 'OrderRefund';
    public function _initialize()
    {
        parent::_initialize();
        // $this -> abort(!$this -> isClient, 'Permission denied', 403);
    }

    public function save()
    {
        // p($this->param);
        // 获得退款金额
        $this->param['RefundAmount'] = 1646.34;
        //
        $res = self::$model->createData($this->param);
        $this->checkRes($res, '添加成功', self::$model->getError());
    }

    public function update()
    {
        // 退款生效
    }
}
